
package com.src.uniandes.ecos.tsp.creditscore.algorithm;

import com.src.uniandes.ecos.tsp.creditscore.exception.CreditScoreException;

/**
 *
 * @author Administrador
 */
public class AmountsOwed {
    /**
     * This method obtains the points for amounts owed by client.
     * @param codigoCliente The client to calculate
     * @return Number of points for amounts owed
     */
    public final double getPointTotalDebt(final Integer codigoCliente) throws CreditScoreException {
        double points = 0.0;
        try {
            if (codigoCliente != null) {
                final RulesAmountsOwed rulesAmountsOwed = new RulesAmountsOwed();
                points = rulesAmountsOwed.getPointTotalDebt(codigoCliente);
            } 
            return points;
        }
        catch (Exception e) {
            throw new CreditScoreException("AmountsOwed:getPointTotalDebt:" + e.toString());
        }
    }
}
